import Vue from 'vue'
import VueRouter from 'vue-router'

Vue.use(VueRouter)

const routes = [
  // {
  //   path: '/',
  //   name: 'Home',
  //   component: Home
  // },
  // {
  //   path: '/about',
  //   name: 'About',
  //   // route level code-splitting
  //   // this generates a separate chunk (about.[hash].js) for this route
  //   // which is lazy-loaded when the route is visited.
  //   component: () => import(/* webpackChunkName: "about" */ '../views/About.vue')
  // }
  {
    path:'/',
    name:'Home',
    component:()=>import("@/views/Home")
  },
  {
    path:'/create-poi',
    name:'POI',
    component:()=>import("@/views/draw/ViewPOI")
  },
  {
    path:'/generate-poi-auto',
    name:'POIMaker',
    component:()=>import("@/views/generate/ViewGOI")
  },
  {
    path:'/create-path',
    name:'Path',
    component:()=>import("@/views/draw/ViewPath")
  }
  ,{
    path:'/generate-path-auto',
    name:'PathMaker',
    component:()=>import("@/views/generate/ViewGPath")
  },{
    path:'/create-range',
    name:"Range",
    component:()=>import("@/views/draw/ViewRange")
  },{
    path:'/create-effect',
    name:"Effect",
    component:()=>import("@/views/draw/ViewEffect")
  },{
    path:'/create-heatmap',
    name:'Heatmap',
    component: ()=>import("@/views/draw/ViewHeatmap")
  },{
    path:'/data-convert',
    name:'DataConvetor',
    component: ()=>import("@/views/data/ViewData")
  }
]

const router = new VueRouter({
  routes
})

export default router
